/**************按钮样式**************/

@import '../variables.scss';

@mixin colorBtn($color) {
  background: $color;

  &:hover {
    color: $color;

    &:before,
    &:after {
      background: $color;
    }
  }
}

@mixin colorBtnCop($color,$colorTwo) {
  background: $color;
  border-color: $color;
  &:hover {
    color: #fff;
    background: $colorTwo;
    border-color: $colorTwo;
  }
}

.blue-btn {
  @include colorBtn($blue)
}

.light-blue-btn {
  @include colorBtn($light-blue)
}

.red-btn {
  @include colorBtn($red)
}

.pink-btn {
  @include colorBtn($pink)
}

.green-btn {
  @include colorBtn($green)
}

.tiffany-btn {
  @include colorBtn($tiffany)
}

.yellow-btn {
  @include colorBtn($yellow)
}

.pan-btn {
  font-size: 14px;
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  outline: none;
  transition: 600ms ease all;
  position: relative;
  display: inline-block;
  background-color: $topMenuBg;

  &:hover {
    background: #fff;

    &:before,
    &:after {
      width: 100%;
      transition: 600ms ease all;
    }
  }

  &:before,
  &:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 2px;
    width: 0;
    transition: 400ms ease all;
  }

  &::after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
  }
}

.custom-button {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  color: #fff;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: 0;
  margin: 0;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 4px;
}
.file-btn{
  background-color: white;
  color: #1565a7;
  border:1px solid #1565a7;
  padding: 5px 8px;
  line-height: initial;
  border-radius: 2px;
  .uploading{
    display: inline-block;
    width: 12px;
    height: 11px;
    background: url("./../../assets/image/index/uploading.png") no-repeat;
    margin-left: 5px;
  }
}
.search-btn.el-button--primary{
  font-size: 16px;
  padding: 0;
  width: 80px;
  height: 34px;
  color: #ffffff;
  @include colorBtnCop(#026dc6,#026dc6);
}

.reset-btn.el-button--default{
  font-size: 16px;
  padding: 0;
  width: 80px;
  height: 34px;
  color: #026dc6;
  @include colorBtnCop(#ffffff,#026dc6);
  border-color: #026dc6;
}

.add-btn.el-button--success{
  font-size: 14px;
  padding: 0 10px;
  height: 30px;
  color: #666666;
  border-color: #dddddd;
  background-color: #f9f9f9;
  .handle—add{
    display: inline-block;
    vertical-align:middle;
    margin-top: -4px;
    width: 16px;
    height: 16px;
    background-image: url("../image/index/button-addA.png");
  }
  &:hover{
    color: #ffffff;
    background-color: #026dc6;
    border-color: #026dc6;
    .handle—add{
      background-image: url("../image/index/button-addB.png");
    }
  }
}
.add-information-btn.el-button--success{
  font-size: 14px;
  padding: 0 10px;
  height: 30px;
  color: #ffffff;
  border-color: #1565a7;
  background-color: #1565a7;
  .add-information-icon{
    display: inline-block;
    vertical-align:middle;
    margin-top: -4px;
    width: 14px;
    height: 14px;
    background-image: url("../image/index/add-information.png");
  }
}
.edit-information-btn.el-button--success{
  font-size: 14px;
  padding: 0 10px;
  height: 30px;
  color: #1565a7;
  background-color: #ffffff;
  border: none;
  .edit—add{
    display: inline-block;
    vertical-align:middle;
    margin-top: -2px;
    width: 14px;
    height: 14px;
    background-image: url("../image/index/add-information-A.png");
  }
  &:hover{
    color: #ffffff;
    background-color: #1565a7;
    border-color: #1565a7;
    .edit—add{
      background-image: url("../image/index/add-information.png");
    }
  }
}
